﻿using IMeiWei.Model;
using IMeiWeiWebService.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IMeiWeiWebService.Extensions
{
    public static class businesstypeclasstwoExtension
    {
        public static SubCuisines ToSubCuisines(this businesstypeclasstwo record)
        {
            return new SubCuisines()
            {
                SubCuisinesId = record.Id,
                SubCuisinesName = record.BusinessTypeClassTwoName,
            };
        }

        public static SubItem ToSubItem(this businesstypeclasstwo record)
        {
            return new SubItem()
            {
                SubItemId = record.Id,
                SubItemName = record.BusinessTypeClassTwoName,
            };
        }
    }
}